package com.tanhao.takeaway.commom;

public class BaseContext {
    private static ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    public static void setThreadLocalId(Long id){
        threadLocal.set(id);
    }

    public static Long getThreadLocalId(){
        return  threadLocal.get();
    }
}
